package com.coderman.common.lightmonitor.mapper;


import com.coderman.common.lightmonitor.entity.ServerDiskEntity;

/**
 * @version v1.0
 * @Description:服务器内存表DAO接口
 * @Author：
 * @CreateTime：2019-09-10 11:14:28
 */
public interface ServerDiskMapper {


    /**
     * @param @param dto
     * @param @param userId
     * @return 当前插入记录id
     * @throws
     * @Title: save
     * @Description:新增或修改
     * @author:
     */
    Long insert(ServerDiskEntity Entity) throws Exception;

    /**
     * @param @param id
     * @return 0/1    返回类型
     * @throws
     * @Title: delete
     * @Description: 通过id删除数据
     * @author:
     */
    int delete(long id) throws Exception;

    /**
     * @param @param id
     * @return ServerDiskEntity   返回类型
     * @throws
     * @Title: getById
     * @Description: 通过id查询
     * @author:
     */
    ServerDiskEntity getById(Long id) throws Exception;


    /**
     * @param @param id
     * @return 0/1
     * @throws
     * @Title: getById
     * @Description: 通过id查询
     * @author:
     */
    //int update(ServerDiskEntity entity) throws Exception;


    /**
     * 获取最新服务器磁盘数据
     * @param serverConfigId
     * @return
     * @throws Exception
     */
    ServerDiskEntity getByServerConfigId(Long serverConfigId) throws Exception;


}